//ValueTransTest1.java
package com.ylaihui.oop1;

public class ValueTransTest1 {
	
	public void swap(int a, int b) {
		int temp = a;
		a = b;
		b = temp;
	}
	
	public static void main(String[] args) {
		int a = 10;
		int b = 20;
		
		ValueTransTest1 v = new ValueTransTest1();
		v.swap(a, b);
		
		System.out.println("a = " + a + ",b = " + b);
	}
}
